package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.qc.entity.info.ListInfo;

public class InterestUserEntity extends ListInfo{

	private long iuId;
	private long senderUserId;
	private long receiveUserId;
    private int  receiveUserRole;//接收者角色 1/BOSS 2/秘书
	
	private String avatar;
	private String nickname;
	
	private String modifiedTime;
	
	//1 我的粉丝 2 我的关注
	private int type;
	
	//用户年龄
	private String userAge;
	
	//用户身高
	private long secHeight;
	//用户职业
	private String job;
	
	//用户省
	private String liveProvince;
	
	//气质标签名称
	private String bName;
	
	//性别
	private String sex;
	
	public static InterestUserEntity getInstance(ResultSet rs) throws SQLException {
		InterestUserEntity entity = new InterestUserEntity();
		
		entity.setIuId(rs.getLong("iu_id"));
		entity.setSenderUserId(rs.getLong("sender_user_id"));
		entity.setReceiveUserId(rs.getLong("receive_user_id"));
		
		entity.setAvatar(rs.getString("avatar"));
		entity.setNickname(rs.getString("nickname"));
		entity.setReceiveUserRole(rs.getInt("receive_user_role"));
		
		return entity;
	}
	
	public long getIuId() {
		return iuId;
	}
	public void setIuId(long iuId) {
		this.iuId = iuId;
	}
	public long getSenderUserId() {
		return senderUserId;
	}
	public void setSenderUserId(long senderUserId) {
		this.senderUserId = senderUserId;
	}
	public long getReceiveUserId() {
		return receiveUserId;
	}
	public void setReceiveUserId(long receiveUserId) {
		this.receiveUserId = receiveUserId;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public int getReceiveUserRole() {
		return receiveUserRole;
	}

	public void setReceiveUserRole(int receiveUserRole) {
		this.receiveUserRole = receiveUserRole;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getUserAge() {
		return userAge;
	}

	public void setUserAge(String userAge) {
		this.userAge = userAge;
	}

	public long getSecHeight() {
		return secHeight;
	}

	public void setSecHeight(long secHeight) {
		this.secHeight = secHeight;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getLiveProvince() {
		return liveProvince;
	}

	public void setLiveProvince(String liveProvince) {
		this.liveProvince = liveProvince;
	}

	public String getbName() {
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(String modifiedTime) {
		this.modifiedTime = modifiedTime;
	}
	
	
}
